package com.qst.express.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Express对象", description="")
public class Express implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "快递id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "快递单号")
    private String number;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "用户手机号码")
    private String userphone;
    @ApiModelProperty(value = "快递公司")
    private String company;
    @ApiModelProperty(value = "取件码")
    private String code;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入库时间", example = "2019-01-01 10:10:10")
    @TableField(fill = FieldFill.INSERT)
    private Date intime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出库时间", example = "2019-01-01 10:10:10")
    private Date outtime;
    @ApiModelProperty(value = "快递状态")
    private Integer status;
    @ApiModelProperty(value = "管理员手机号码")
    private String sysphone;

    @ApiModelProperty(value = "用户快递数量")
    @TableField(exist = false)
    private String sum;
    @ApiModelProperty(value = "临时图像")
    @TableField(exist = false)
    private String img;


}
